package cn.zpfhomework11;
//测试类

import java.util.Scanner;
public class Test {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        Department d=new Department();
        d.id="0001";
        d.name="销售部";
        Employee e=new Employee ();
        e.id="002";
        e.name1="章朋飞";
        e.Salary=2000;
        e.bu="销售部";
        d.show();
        e.showin();
        System.out.print("请输入章朋飞的销售额:");
        double sales=input.nextDouble();
        System.out.println("本月工资为"+e.countSalary(sales)+"元");
    }

}
